<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<jsp:useBean id="itemDate" class="java.util.Date" />
<jsp:setProperty name="itemDate" property="time" value="${wsdlEntry.timeStamp}" />

<h1>${wsdlEntry.fileName}</h1>

<span class="entry-version"><fmt:formatDate pattern="dd. MM. yyyy hh:mm:ss" value="${itemDate}" dateStyle="long" timeZone="GMT+2"/></span>
<span class="entry-remove"><a href="${pageContext.request.contextPath}/wsdl/delete/${wsdlEntry.fileName}/${wsdlEntry.timeStamp}" onclick="return confirm('Do you really want to delete this version?')">Delete</a></span>
<span class="entry-download"><a href="${pageContext.request.contextPath}/wsdl/download/${wsdlEntry.fileName}/${wsdlEntry.timeStamp}">Download .wsdl</a></span>

<div>
    <h3>Operations</h3>
    <table>
        <tr>
            <th>Name</th>
            <th>Input</th>
            <th>Output</th>
            <th>Fault</th>
        </tr>
        <c:choose>
            <c:when test="${f:length(wsdlEntry.operation) gt 0}">
                <c:forEach var="operation" items="${wsdlEntry.operations}">
                    <tr>
                    <td>${operation.name}</td>
                    <td>${operation.input}</td>
                    <td>${operation.output}</td>
                    <td>${operation.fault}</td>
                    </tr>
                </c:forEach>
            </c:when>
            <c:otherwise>
            </c:otherwise>
        </c:choose>
        </table>

    </div>

    <pre class="brush: xml">
        ${wsdlEntry.wsdlContent}
    </pre>

